public class movieOperator {
    private movie[] movies;
    public movieOperator() {

    }
    public movieOperator(movie[] movie) {
        this.movies = movie;
    }
    public void showMovies(){
        for (int i = 0; i < movies.length; i++) {
            movie m = movies[i];
            System.out.println("编号：" + m.getMovieId() + "名称："+m.getTitle() + "价格： "+ m.getPrice());
        }
    }
    public void findMovieFromId(int id){
        for (int i = 0; i < movies.length; i++) {
            if(movies[i].getMovieId() == id){
                System.out.println("编号："+movies[i].getMovieId());
                System.out.println("标题："+movies[i].getTitle());
            }
        }
    }
}
